package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.UserLike;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface UserLikeApi {

    //保存或者更新
    Boolean saveOrUpdate(Long userId, Long likeUserId, boolean isLike);

    Map count(Long userId);

    //根据视频用户id和登录用户id查询
    UserLike findByid(Long uid, Long userId);

    //删除喜欢表中的单条数据
    void delete(Long userId, Long likeUserId, boolean isLike);

    Map<Long, Boolean> alreadyLove(Long userId, Set<Long> userIds);
}
